'use strict';
const Service = require('egg').Service;

class returnInfoService extends Service {
  async index(model, message) {
    if (!model) {
      return {
        code: 400,
        message,
      };
    }
    return {
      code: 200,
      body: model,
    };
  }
}

module.exports = returnInfoService;
